package ro.flashbite.loaders.events
{	
	import ro.flashbite.interfaces.IDestroyable;
	
	import flash.events.Event;

	public final class AssetEvent extends Event implements IDestroyable
	{
		public static const		OPEN			:	String 		= "AssetEventOpen";
		public static const		PROGRESS		:	String 		= "AssetEventProgress";
		public static const		COMPLETE		:	String 		= "AssetEventComplete";
		
		public static const		IO_ERROR		:	String 		= "AssetEventIoError";
		public static const		SECURITY_ERROR	:	String 		= "AssetEventSecurityError";
		public static const		HTTP_STATUS		:	String 		= "AssetEventHttpStatus";
		
		private var 			_event			:	*;
		
		public function AssetEvent(type:String, event:*)
		{
			super(type);
			
			_event = event;
		}
		
		public function getEvent():* { return _event; }
		
		public function destroy():void
		{
			_event = null;
		}
	}
}